import Vue from 'vue'
import router from './router'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import './plugins/element.js'
// import VueResource from 'vue-resource'; Vue.use(VueResource)

//导入样式
import './assets/css/global.css'
import './assets/fonts/iconfont.css'
import axios from 'axios'
// import config from 'vue.config.js'
Vue.prototype.$axios = axios
//axios请求头设置
axios.interceptors.request.use(config => {
  config.headers.Authorization = window.sessionStorage.getItem("token");
  return config;
})

Vue.config.productionTip = false
Vue.prototype.HOST = '/api';


Vue.use(ElementUI)
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')


